<?php
/**
 * Created by PhpStorm.
 * Author: sitenv@aliyun.com
 * CreateTime: 2023/8/20 21:48
 * Blog：www.myblogs.xyz
 */

namespace app\infrastructure\model;

class UserModel extends BaseModel
{
    protected $name = 'user';
    protected $pk = 'id';

    public function getIntegral(int $userId): float
    {
        return $this->getField($userId, 'integral');
    }
}